import { createApp } from 'vue'
import App from './App.vue'
//引入样式重置文件
import 'normalize.css'
//引入样式文件
import './assets/css/index.less'
//引入路由
import router from './router'
//引入状态管理工具
import pinia from './store'
//引入注册图标库
import registerIcons from './global/registerIcons'
//1.全局引入element-plus
// import ElementPlus from 'element-plus'
// 1)引入element-plus组件样式(全部引入)
import 'element-plus/dist/index.css'
// app.use(ElementPlus)

//2).按需引入组件样式
// import 'element-plus/theme-chalk/el-message.css'

//3)使用vite-plugin-style-import(这个现在暂时不配置，后面进行配置)
//npm install

//3.图标的全局注册

const app = createApp(App)
app.use(registerIcons)
app.use(router)
app.use(pinia)

app.mount('#app')
